package com.dyson.pool.testDbPool.service;

import com.dyson.pool.testDbPool.dao.LogMapper;
import com.dyson.pool.testDbPool.po.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author:DysonWy@Gmail.com
 * @time:2019/8/10 16:23
 */
@Service
public class LogService {
    @Autowired
    private LogMapper logMapper;

    public int logTest() {
        Log log = new Log();
        log.setId(451);
        log.setMethod("test");
        return logMapper.updateByPrimaryKeySelective(log);
    }
}
